package elephant.servers.webserver.log;

import org.eclipse.jetty.util.log.Logger;
import org.slf4j.LoggerFactory;

/**
 * 
 * @author icecooly
 *
 */
public class JettyLogger implements Logger{
	
	private static org.slf4j.Logger logger=LoggerFactory.getLogger(JettyLogger.class);

	@Override
	public void debug(Throwable arg0) {
		logger.debug("",arg0);
	}

	@Override
	public void debug(String arg0, Object... arg1) {
		logger.debug(arg0,arg1);
	}

	@Override
	public void debug(String arg0, long arg1) {
		logger.debug(arg0,arg1);
	}

	@Override
	public void debug(String arg0, Throwable arg1) {
		logger.debug(arg0,arg1);
	}

	@Override
	public Logger getLogger(String arg0) {
		return null;
	}

	@Override
	public String getName() {
		return logger.getName();
	}

	@Override
	public void ignore(Throwable arg0) {
		
	}

	@Override
	public void info(Throwable arg0) {
		logger.info("",arg0);
	}

	@Override
	public void info(String arg0, Object... arg1) {
		logger.info(arg0,arg1);
	}

	@Override
	public void info(String arg0, Throwable arg1) {
		logger.info(arg0,arg1);
	}

	@Override
	public boolean isDebugEnabled() {
		return logger.isDebugEnabled();
	}

	@Override
	public void setDebugEnabled(boolean arg0) {
		
	}

	@Override
	public void warn(Throwable arg0) {
		logger.warn("",arg0);
	}

	@Override
	public void warn(String arg0, Object... arg1) {
		logger.warn(arg0,arg1);
	}

	@Override
	public void warn(String arg0, Throwable arg1) {
		logger.warn(arg0,arg1);
	}	
}
